import Vue from 'vue'
import App from './App.vue'
import iView from 'iview'
import 'iview/dist/styles/iview.css'
import { routes } from './routes';
import VueRouter from 'vue-router';
import axios from 'axios'
import VueAxios from 'vue-axios'
import VueQuillEditor from 'vue-quill-editor'
import { store } from './store'
// require styles
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

Vue.use(VueQuillEditor, /* { default global options } */ )

Vue.use(VueAxios, axios)
Vue.use(iView);
Vue.use(VueRouter);

const router = new VueRouter({
    routes: routes, // 可以直接写成routes
    mode: 'hash'
});

new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App)
})